package model

import "gorm.io/gorm"

// 用户表
type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}

// 权限表
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(50)"`
}

// 角色表
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}
type NodeRole struct {
	gorm.Model
	Nid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}

// 配送员
type Boss struct {
	gorm.Model
	BossName string `gorm:"type:varchar(50)"`
	Tel      string `gorm:"type:varchar(50)"`
}

// 订单表
type Good struct {
	gorm.Model
	LinkName string `gorm:"type:varchar(50)"`
	Price    int    `gorm:"type:int"`
}
type BossGood struct {
	gorm.Model
	Bid int `gorm:"type:int"`
	Gid int `gorm:"type:int"`
}
